package com.implementsystem.prestacontas.programas.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
		"codigoMunicipio",
		"exercicio",
		"codigoPrograma",
		"nome"
})
@XmlRootElement(name="programas")
@Entity
@Table(name="programa", schema="geral")
public class Programa implements Serializable{

	private static final long serialVersionUID = -8471653799230576883L;

	@Id @XmlTransient
	@SequenceGenerator(sequenceName="geral.seq_programa", name="seq_programa", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,  generator="seq_programa")
	private Long id;
	
	@XmlElement(name="codigo_municipio")
	private String codigoMunicipio;
	
	@XmlElement(name="exercicio_orcamento")
	private String exercicio;
	
	@XmlElement(name="codigo_programa")
	private String codigoPrograma;

	@XmlElement(name="nome_programa")
	private String nome;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getCodigoMunicipio() {
		return codigoMunicipio;
	}
	public void setCodigoMunicipio(String codigoMunicipio) {
		this.codigoMunicipio = codigoMunicipio;
	}
	public String getExercicio() {
		return exercicio;
	}
	public void setExercicio(String exercicio) {
		this.exercicio = exercicio;
	}
	public String getCodigoPrograma() {
		return codigoPrograma;
	}
	public void setCodigoPrograma(String codigoPrograma) {
		this.codigoPrograma = codigoPrograma;
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}

	
}
